import axios from "axios";

/**
 * 获取代码片段
 * @param url
 */
export const getCode = (url: string) => {
  return axios.get(`${window.origin}/code/${url}`);
};
